const fromConfig = [
    {
        label:'标题',
        prop:'title',
        minWidth:'130',
    },
    {
        label:'简介',
        prop:'introduction',
        minWidth:'230',
    },
    {
        label:'图片地址',
        prop:'imgsrc',
        minWidth:'180',
        type:'filter',
        filter:function(item){
            var reg1 = new RegExp("http://localhost:4000","g");
            if(item.imgsrc instanceof Array){
                return item.imgsrc[0].url.replace(reg1,'')
            }else return 1
        }
    },
    {
        label:'正文',
        prop:'text',
        minWidth:'180',
        width:'400',
    },
    {
        label:'操作',
        prop:'',
        fixed:'right',
        minWidth:'150'
    },
]


export {fromConfig}